//
//  WDInAppPurchaseManager.h
//  WDPolymerizeSDK
//
//  Created by little People on 2023/6/15.
//

#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>
NS_ASSUME_NONNULL_BEGIN

static NSString *InAppPurchaseFailRefuse = @"该商品暂时无法购买，请稍后重试";
static NSString *InAppPurchaseFailRequest = @"操作失败，请稍后重试";
static NSString *InAppPurchaseFailBuy = @"购买失败，请稍后重试";
static NSString *InAppPurchaseFailResume = @"恢复失败，您未购买过该商品";

@interface WDInAppPurchaseManager : NSObject<SKPaymentTransactionObserver,SKProductsRequestDelegate>


+ (instancetype)shareInAppPurchaseManager;

//发起内购
- (void)launchInAppPurchase:(NSString *)productId;

//恢复内购
- (void)restoreInAppPurchase:(NSString *)productId;

-(void)removeObserver;

- (void)requestProductLists:(NSArray *)array;



@end

NS_ASSUME_NONNULL_END
